package com.gaogzhen.feigh;

import com.gaogzhen.config.feign.OAuth2FeignConfig;
import com.gaogzhen.dto.UserBankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Administrator
 * @version 1.0
 * @description
 * @date 2022-10-29 11:49
 */
@FeignClient(name = "member-service", contextId = "UserBankServiceFeign", configuration = OAuth2FeignConfig.class, path = "/userBanks")
public interface UserBankServiceFeign {
    /**
     * 远程调用
     *  量查询用户银行卡的简要信息
     * @param userId   用户id
     * @return      用户银行卡简要信息
     */
    @GetMapping("/{userId}/info")
    UserBankDto getBriefUserBank(@PathVariable Long userId);
}
